package com.shandiangou.crm.model.vo;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 数据权限的VO类
 */
public class DataRightVo {

    String id;//id

    @Length(min=11,max=11,message = "mobile必须是11位的手机号码")
    @NotNull(message = "mobile不能为空")
    private String mobile;//用户号码

    @Length(min=1,max=16,message = "权限类型为1-16位的长度")
    @NotNull(message = "权限类型不能为空")
    private String rightType;//权限类型

    @Length(min=1,max=200,message = "权限值为1-200位的长度")
    @NotNull(message = "权限值不能为空")
    private String rightValue;//权限值

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRightType() {
        return rightType;
    }

    public void setRightType(String rightType) {
        this.rightType = rightType;
    }

    public String getRightValue() {
        return rightValue;
    }

    public void setRightValue(String rightValue) {
        this.rightValue = rightValue;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
